package com.xuecheng.auth.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author xiao
 * @Date 2024/12/23 下午 4:05
 * @ClassName: CheckCodeFeign
 * @Description: 远程调用验证码校验工具
 */
@FeignClient(value = "checkcode",fallbackFactory = CheckCodeClientFallbackFactory.class)
public interface CheckCodeClient {

    @PostMapping(value = "/checkcode/verify")
    public Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);

}
